package directoryapp

class HomeController {

	def springSecurityService;
	
    def index = {
        def employeeInstance = Employee.get(springSecurityService.currentUser.id)
		/*if (employeeInstance) {
			render(view: "/index", model: [employeeInstance: employeeInstance])
		} else {*/
			render(view: "/index", model: [employeeInstance: employeeInstance] )
		//}
		
	}
}
